package cn.dwy2002.binaryhandwritingserver.exception;

import lombok.Getter;

/**
 * 关联关系不存在异常
 *
 * @author 杜伟毅
 * @version 1.0
 * @since 2025/05/28
 */
@Getter
public class RelationNotFoundException extends ServiceException {
    private final Long projectId;
    private final Long tagId;

    public RelationNotFoundException(Long projectId, Long tagId) {
        super(String.format("项目[%d]与标签[%d]的关联不存在", projectId, tagId));
        this.projectId = projectId;
        this.tagId = tagId;
    }

}